import Vue from 'vue'
import Router from 'vue-router'
import Home from './components/home.vue'
import Dashboard from './components/dashboard.vue'
import Index from './components/common/index.vue'
import homepage from './components/primary/homepage.vue'
import individual from './components/primary/individual.vue'
import information from './components/primary/information.vue'

Vue.use(Router)

const routes = [{
    path: '/',
    component: Home,
    children: [{
        path: '/',
        component: resolve => require(['./components/primary/homepage.vue'], resolve)
    },]
},
{
    path: '/login',
    component: resolve => require(['./components/login.vue'], resolve),
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'refresh',
        component: resolve => require(['./components/refresh.vue'], resolve),
        name: 'refresh'
    }]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'trainee/detail/:id',
        component: resolve => require(['./components/trainee/detail.vue'], resolve),
        name: 'traineeDetail'
    },
    {
        path: 'trainee/search',
        component: resolve => require(['./components/trainee/search.vue'], resolve),
        name: 'traineeSearch'
    },
    {
        path: 'trainee/add',
        component: resolve => require(['./components/trainee/add.vue'], resolve),
        name: 'traineeAdd'
    },
    {
        path: 'trainee/list',
        component: resolve => require(['./components/trainee/list.vue'], resolve),
        name: 'traineeList',
    },
    {
        path: 'trainee/intention',
        component: resolve => require(['./components/trainee/intention.vue'], resolve),
    },
    ]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'customer/add',
        component: resolve => require(['./components/customer/add.vue'], resolve),
        name: 'customerAdd'
    },
    {
        path: 'customer/search',
        component: resolve => require(['./components/customer/search.vue'], resolve),
        name: 'customerSearch'
    },
    {
        path: 'customer/list',
        component: resolve => require(['./components/customer/list.vue'], resolve),
        name: 'customerList',
    },
    {
        path: 'customer/detail/:id',
        component: resolve => require(['./components/customer/detail.vue'], resolve),
        name: 'customerDetail'
    }, {
        path: 'customer/customerIntention',
        component: resolve => require(['./components/customer/intention.vue'], resolve),

    }]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'training/list',
        component: resolve => require(['./components/training/list.vue'], resolve),
    }, {
        path: 'training/addProject',
        component: resolve => require(['./components/training/addProject.vue'], resolve),
    }, {
        path: 'training/projectDetail/:id',
        component: resolve => require(['./components/training/projectDetail.vue'], resolve),
    }, {
        path: 'training/add',
        component: resolve => require(['./components/training/add.vue'], resolve),
    }, {
        path: 'training/listDetail/:id',
        component: resolve => require(['./components/training/listDetail.vue'], resolve),
    }, {
        path: 'training/edit/:id',
        component: resolve => require(['./components/training/edit.vue'], resolve),
    },]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'operate/supplier/hotel',
        component: resolve => require(['./components/operate/supplier/hotel.vue'], resolve)
    },
    {
        path: 'operate/supplier/hotelDetail/:id',
        // component: hotelDetail
        component: resolve => require(['./components/operate/supplier/hotelDetail.vue'], resolve)
    },
    {
        path: 'operate/supplier/other',
        // component: other,
        component: resolve => require(['./components/operate/supplier/other.vue'], resolve)
    },
    {
        path: 'operate/supplier/otherDetail/:id',
        // component: otherDetail
        component: resolve => require(['./components/operate/supplier/otherDetail.vue'], resolve)
    },
    {
        path: 'operate/manpower/employee',
        // component: employee
        component: resolve => require(['./components/operate/manpower/employee.vue'], resolve)
    },
    {
        path: 'operate/manpower/list',
        // component: employeeList,
        component: resolve => require(['./components/operate/manpower/list.vue'], resolve)
    },
    {
        path: 'operate/manpower/listDetail/:id',
        // component: employeeDetail
        component: resolve => require(['./components/operate/manpower/listDetail.vue'], resolve)
    },
    {
        path: 'operate/manpower/recruit',
        // component: recruit,
        component: resolve => require(['./components/operate/manpower/recruit.vue'], resolve)
    },
    {
        path: 'operate/manpower/recruitDetail/:id',
        // component: recruitDetail
        component: resolve => require(['./components/operate/manpower/recruitDetail.vue'], resolve)
    },
    {
        path: 'operate/manpower/timeSheet',
        // component: timeSheet
        component: resolve => require(['./components/operate/manpower/timeSheet.vue'], resolve)
    },
    {
        path: 'operate/manpower/courseMoney',
        // component: courseMoney
        component: resolve => require(['./components/operate/manpower/courseMoney'], resolve)
    },
    {
        path: 'operate/assets/house',
        // component: house,
        component: resolve => require(['./components/operate/assets/house.vue'], resolve)
    },
    {
        path: 'operate/assets/houseDetail/:id',
        // component: houseDetail
        component: resolve => require(['./components/operate/assets/houseDetail.vue'], resolve)
    },
    {
        path: 'operate/assets/office',
        // component: office,
        component: resolve => require(['./components/operate/assets/office.vue'], resolve)
    },
    {
        path: 'operate/assets/officeDetail/:id',
        // component: officeDetail
        component: resolve => require(['./components/operate/assets/officeDetail.vue'], resolve)
    },
    {
        path: 'operate/assets/transport',
        // component: transport,
        component: resolve => require(['./components/operate/assets/transport.vue'], resolve)
    },
    {
        path: 'operate/assets/transportDetail/:id',
        // component: transportDetail
        component: resolve => require(['./components/operate/assets/transportDetail.vue'], resolve)
    },
    {
        path: 'operate/assets/other',
        // component: assetsOther,
        component: resolve => require(['./components/operate/assets/other.vue'], resolve)
    },
    {
        path: 'operate/assets/facilities/classroom',
        // component: classroom,
        component: resolve => require(['./components/operate/assets/facilities/classroom.vue'], resolve)
    },
    {
        path: 'operate/assets/facilities/classroomDetail/:id',
        // component: classroomDetail
        component: resolve => require(['./components/operate/assets/facilities/classroomDetail.vue'], resolve)
    },
    {
        path: 'operate/assets/facilities/simulator',
        // component: simulator,
        component: resolve => require(['./components/operate/assets/facilities/simulator.vue'], resolve)
    },
    {
        path: 'operate/assets/facilities/simulatorDetail/:id',
        // component: simulatorDetail
        component: resolve => require(['./components/operate/assets/facilities/simulatorDetail.vue'], resolve)
    },
    {
        path: 'operate/assets/facilities/book',
        // component: book,
        component: resolve => require(['./components/operate/assets/facilities/book.vue'], resolve)
    },
    {
        path: 'operate/assets/facilities/bookDetail/:id',
        // component: bookDetail
        component: resolve => require(['./components/operate/assets/facilities/bookDetail.vue'], resolve)
    },
    {
        path: 'operate/assets/facilities/textbook',
        // component: textbook,
        component: resolve => require(['./components/operate/assets/facilities/textbook.vue'], resolve)
    },
    {
        path: 'operate/assets/facilities/textbookDetail/:id',
        // component: textbookDetail
        component: resolve => require(['./components/operate/assets/facilities/textbookDetail.vue'], resolve)
    },
    {
        path: 'operate/finance/wxPayRecord',
        // component: wxPayRecord,
        component: resolve => require(['./components/operate/finance/wxPayRecord'], resolve)
    },
    ]


},
{
    path: '/',
    component: Home,
    children: [{
        path: 'course/add',
        component: resolve => require(['./components/course/add.vue'], resolve),
        name: 'courseAdd'
    },
    {
        path: 'course/list',
        component: resolve => require(['./components/course/list.vue'], resolve),
        name: 'courseList',
    },
    {
        path: 'course/detail/:id',
        component: resolve => require(['./components/course/detail.vue'], resolve),
        name: 'courseDetail'
    },
    {
        path: 'course/calendar',
        component: resolve => require(['./components/course/calendar.vue'], resolve),
        name: 'calendar',
        meta: { 
            keepAlive: true
        }
    },
    ]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'question/add',
        component: resolve => require(['./components/question/add.vue'], resolve),
        name: 'questionAdd'
    },
    {
        path: 'question/search',
        component: resolve => require(['./components/question/search.vue'], resolve),
        name: 'questionSearch'
    },
    {
        path: 'question/keyword',
        component: resolve => require(['./components/question/keyword.vue'], resolve),
        name: 'questionKeyword'
    },
    {
        path: 'question/list',
        component: resolve => require(['./components/question/list.vue'], resolve),
        name: 'questionList',
    },
    {
        path: 'question/detail/:id',
        component: resolve => require(['./components/question/detail.vue'], resolve),
        name: 'questionDetail'
    },
    ]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'system/user',
        // component: userList,
        name: 'userList',
        component: resolve => require(['./components/system/user.vue'], resolve)
    }, {
        path: 'system/group',
        // component: groupList,
        name: 'groupList',
        component: resolve => require(['./components/system/group.vue'], resolve)
    }, {
        path: 'system/WeChatPay',
        // component: WeChatPay,
        name: 'WeChatPay',
        component: resolve => require(['./components/system/WeChatPay.vue'], resolve)
    }, {
        path: 'system/webHome',
        // component: webHome,
        name: 'webHome',
        component: resolve => require(['./components/system/webHome.vue'], resolve)
    }, {
        path: 'system/webAbout',
        // component: webAbout,
        name: 'webAbout',
        component: resolve => require(['./components/system/webAbout.vue'], resolve)
    }, {
        path: 'system/webNews',
        // component: webNews,
        name: 'webNews',
        component: resolve => require(['./components/system/webNews.vue'], resolve)
    }, {
        path: 'system/webContact',
        // component: webContact,
        name: 'webContact',
        component: resolve => require(['./components/system/webContact.vue'], resolve)
    }]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/traineeCount',
        // component: traineeCount,
        component: resolve => require(['./components/dashboard/trainee/traineeCount.vue'], resolve)
    },
    {
        path: 'dashboard/traineeCountDetail/:id',
        // component: traineeCountDetail
        component: resolve => require(['./components/dashboard/trainee/traineeCountDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeLocation',
        // component: traineeLocation
        component: resolve => require(['./components/dashboard/trainee/traineeLocation.vue'], resolve)
    },
    {
        path: 'dashboard/traineeLocationDetail/:id',
        // component: traineeLocationDetail
        component: resolve => require(['./components/dashboard/trainee/traineeLocationDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeAge',
        // component: traineeAge
        component: resolve => require(['./components/dashboard/trainee/traineeAge.vue'], resolve)
    },
    {
        path: 'dashboard/traineeAgeDetail/:id',
        // component: traineeAgeDetail
        component: resolve => require(['./components/dashboard/trainee/traineeAgeDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeZhiwu',
        // component: traineeZhiwu
        component: resolve => require(['./components/dashboard/trainee/traineeZhiwu.vue'], resolve)
    },
    {
        path: 'dashboard/traineeZhiwuDetail/:id',
        // component: traineeZhiwuDetail
        component: resolve => require(['./components/dashboard/trainee/traineeZhiwuDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeAgework',
        // component: traineeAgework
        component: resolve => require(['./components/dashboard/trainee/traineeAgework.vue'], resolve)
    },
    {
        path: 'dashboard/traineeAgeworkDetail/:id',
        // component: traineeAgeworkDetail
        component: resolve => require(['./components/dashboard/trainee/traineeAgeworkDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeEducation',
        // component: traineeEducation
        component: resolve => require(['./components/dashboard/trainee/traineeEducation.vue'], resolve)
    },
    {
        path: 'dashboard/traineeEducationDetail/:id',
        // component: traineeEducationDetail
        component: resolve => require(['./components/dashboard/trainee/traineeEducationDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeCrewtype',
        // component: traineeCrewtype
        component: resolve => require(['./components/dashboard/trainee/traineeCrewtype.vue'], resolve)
    },
    {
        path: 'dashboard/traineeCrewtypeDetail/:id',
        // component: traineeCrewtypeDetail
        component: resolve => require(['./components/dashboard/trainee/traineeCrewtypeDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeSelf',
        // component: traineeSelf
        component: resolve => require(['./components/dashboard/trainee/traineeSelf.vue'], resolve)
    },
    {
        path: 'dashboard/traineeSelfDetail/:id',
        // component: traineeSelfDetail
        component: resolve => require(['./components/dashboard/trainee/traineeSelfDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeCourse',
        // component: traineeCourse
        component: resolve => require(['./components/dashboard/trainee/traineeCourse.vue'], resolve)
    },
    {
        path: 'dashboard/traineeCourseDetail/:id',
        // component: traineeCourseDetail
        component: resolve => require(['./components/dashboard/trainee/traineeCourseDetail.vue'], resolve)
    }, {
        path: 'dashboard/traineeFeedback',
        // component: traineeFeedback
        component: resolve => require(['./components/dashboard/trainee/traineeFeedback.vue'], resolve)
    },
    {
        path: 'dashboard/traineeFeedbackDetail/:course/:id',
        // component: traineeFeedbackDetail
        component: resolve => require(['./components/dashboard/trainee/traineeFeedbackDetail.vue'], resolve)
    },]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/customer/recommendList/:id/:num',
        // component: recommendList,
        component: resolve => require(['./components/dashboard/customer/recommendList.vue'], resolve)
    }, {
        path: 'dashboard/customerPay',
        // component: customerPay
        component: resolve => require(['./components/dashboard/customer/customerPay.vue'], resolve)
    },
    {
        path: 'dashboard/customerPayDetail/:id',
        // component: customerPayDetail
        component: resolve => require(['./components/dashboard/customer/customerPayDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerTraining',
        // component: customerTraining
        component: resolve => require(['./components/dashboard/customer/customerTraining.vue'], resolve)
    },
    {
        path: 'dashboard/customerTrainingDetail/:id',
        // component: customerTrainingDetail
        component: resolve => require(['./components/dashboard/customer/customerTrainingDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerTrainee',
        // component: customerTrainee
        component: resolve => require(['./components/dashboard/customer/customerTrainee.vue'], resolve)
    },
    {
        path: 'dashboard/customerTraineeDetail/:customer/:id',
        // component: customerTraineeDetail
        component: resolve => require(['./components/dashboard/customer/customerTraineeDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerNew',
        // component: customerNew
        component: resolve => require(['./components/dashboard/customer/customerNew.vue'], resolve)
    },
    {
        path: 'dashboard/customerNewDetail/:id',
        // component: customerNewDetail
        component: resolve => require(['./components/dashboard/customer/customerNewDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerChuandong',
        // component: customerChuandong
        component: resolve => require(['./components/dashboard/customer/customerChuandong.vue'], resolve)
    },
    {
        path: 'dashboard/customerChuandongDetail/:id',
        // component: customerChuandongDetail
        component: resolve => require(['./components/dashboard/customer/customerChuandongDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerDaili',
        // component: customerDaili
        component: resolve => require(['./components/dashboard/customer/customerDaili.vue'], resolve)
    },
    {
        path: 'dashboard/customerDailiDetail/:id',
        // component: customerDailiDetail
        component: resolve => require(['./components/dashboard/customer/customerDailiDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerLocation',
        // component: customerLocation
        component: resolve => require(['./components/dashboard/customer/customerLocation.vue'], resolve)
    },
    {
        path: 'dashboard/customerLocationDetail/:id',
        // component: customerLocationDetail
        component: resolve => require(['./components/dashboard/customer/customerLocationDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerCrewtype',
        // component: customerCrewtype
        component: resolve => require(['./components/dashboard/customer/customerCrewtype.vue'], resolve)
    },
    {
        path: 'dashboard/customerCrewtypeDetail/:id',
        // component: customerCrewtypeDetail
        component: resolve => require(['./components/dashboard/customer/customerCrewtypeDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerCourse',
        // component: customerCourse
        component: resolve => require(['./components/dashboard/customer/customerCourse.vue'], resolve)
    },
    {
        path: 'dashboard/customerCourseDetail/:id',
        // component: customerCourseDetail
        component: resolve => require(['./components/dashboard/customer/customerCourseDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerFeedback',
        // component: customerFeedback
        component: resolve => require(['./components/dashboard/customer/customerFeedback.vue'], resolve)
    },
    {
        path: 'dashboard/customerFeedbackDetail/:course/:id',
        // component: customerFeedbackDetail
        component: resolve => require(['./components/dashboard/customer/customerFeedbackDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerBaifang',
        // component: customerBaifang
        component: resolve => require(['./components/dashboard/customer/customerBaifang.vue'], resolve)
    },
    {
        path: 'dashboard/customerBaifangDetail/:id',
        // component: customerBaifangDetail
        component: resolve => require(['./components/dashboard/customer/customerBaifangDetail.vue'], resolve)
    }, {
        path: 'dashboard/customerActivity',
        // component: customerActivity
        component: resolve => require(['./components/dashboard/customer/customerActivity.vue'], resolve)
    },
    {
        path: 'dashboard/customerActivityDetail/:id',
        // component: customerActivityDetail
        component: resolve => require(['./components/dashboard/customer/customerActivityDetail.vue'
    ], resolve)
    },]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/courseIncome',
        // component: courseIncome
        component: resolve => require(['./components/dashboard/course/courseIncome.vue'], resolve)
    },
    {
        path: 'dashboard/courseIncomeDetail/:id',
        // component: courseIncomeDetail
        component: resolve => require(['./components/dashboard/course/courseIncomeDetail.vue'], resolve)
    },
    {
        path: 'dashboard/studentPay/:id',
        // component: studentPay
        component: resolve => require(['./components/dashboard/course/studentPay.vue'], resolve)
    },
    {
        path: 'dashboard/courseCertificate',
        // component: courseCertificate
        component: resolve => require(['./components/dashboard/course/courseCertificate.vue'], resolve)
    },
    {
        path: 'dashboard/courseCertificateDetail/:date',
        // component: courseCertificateDetail
        component: resolve => require(['./components/dashboard/course/courseCertificateDetail.vue'], resolve)
    },
    {
        path: 'dashboard/courseSimulator',
        // component: courseSimulator
        component: resolve => require(['./components/dashboard/course/courseSimulator.vue'], resolve)
    },
    {
        path: 'dashboard/courseSimulatorDetail/:id',
        // component: courseSimulatorDetail
        component: resolve => require(['./components/dashboard/course/courseSimulatorDetail.vue'], resolve)
    },
    {
        path: 'dashboard/courseTypeIncome',
        // component: courseTypeIncome
        component: resolve => require(['./components/dashboard/course/courseTypeIncome.vue'], resolve)
    },
    {
        path: 'dashboard/courseTypeIncomeDetail/:id',
        // component: courseTypeIncomeDetail
        component: resolve => require(['./components/dashboard/course/courseTypeIncomeDetail.vue'], resolve)
    },{
        path: 'dashboard/courseCost',
        // component: courseCost
        component: resolve => require(['./components/dashboard/course/courseCost.vue'], resolve)
      },{
        path: 'dashboard/courseCostDetail/:id',
        // component: courseCostDetail
        component: resolve => require(['./components/dashboard/course/courseCostDetail.vue'], resolve)
      },{
        path: 'dashboard/courseReturn',
        // component: courseReturn
        component: resolve => require(['./components/dashboard/course/courseReturn.vue'], resolve)
      },{
        path: 'dashboard/courseReturnDetail/:id',
        // component: courseReturnDetail
        component: resolve => require(['./components/dashboard/course/courseReturnDetail.vue'], resolve)
      },]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/classroomIncome',
        // component: classroomIncome
        component: resolve => require(['./components/dashboard/facility/classroomIncome.vue'], resolve)
    },
    {
        path: 'dashboard/classroomIncomeDetail/:id',
        // component: classroomIncomeDetail
        component: resolve => require(['./components/dashboard/facility/classroomIncomeDetail.vue'], resolve)
    },{
        path: 'dashboard/classroomVacancy',
        // component: classroomVacancy
        component: resolve => require(['./components/dashboard/facility/classroomVacancy.vue'], resolve)
      },{
        path: 'dashboard/classroomVacancyDetail/:id',
        // component: classroomVacancyDetail
        component: resolve => require(['./components/dashboard/facility/classroomVacancyDetail.vue'], resolve)
      },{
        path: 'dashboard/simulatorVacancy',
        // component: simulatorVacancy
        component: resolve => require(['./components/dashboard/facility/simulatorVacancy.vue'], resolve)
      },{
        path: 'dashboard/simulatorVacancyDetail/:id',
        // component: simulatorVacancyDetail
        component: resolve => require(['./components/dashboard/facility/simulatorVacancyDetail.vue'], resolve)
      },]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/trainerHour',
        // component: trainerHour
        component: resolve => require(['./components/dashboard/trainer/trainerHour.vue'], resolve)
    },
    {
        path: 'dashboard/trainerHourDetail/:id',
        // component: trainerHourDetail
        component: resolve => require(['./components/dashboard/trainer/trainerHourDetail.vue'], resolve)
    },{
        path: 'dashboard/trainerCourseNum',
        // component: trainerCourseNum
        component: resolve => require(['./components/dashboard/trainer/trainerCourseNum.vue'], resolve)
    },
    {
        path: 'dashboard/trainerCourseNumDetail/:id/:num',
        // component: trainerCourseNumDetail
        component: resolve => require(['./components/dashboard/trainer/trainerCourseNumDetail.vue'], resolve)
    },{
        path: 'dashboard/trainerTraining',
        // component: trainerTraining
        component: resolve => require(['./components/dashboard/trainer/trainerTraining.vue'], resolve)
    },
    {
        path: 'dashboard/trainerTrainingDetail/:num',
        // component: trainerTrainingDetail
        component: resolve => require(['./components/dashboard/trainer/trainerTrainingDetail.vue'], resolve)
    },{
        path: 'dashboard/trainerVacancy',
        // component: trainerVacancy
        component: resolve => require(['./components/dashboard/trainer/trainerVacancy.vue'], resolve)
      },{
        path: 'dashboard/trainerVacancyDetail/:id',
        // component: trainerVacancyDetail
        component: resolve => require(['./components/dashboard/trainer/trainerVacancyDetail.vue'], resolve)
      }]
},
{
    path: '/',
    component: Dashboard,
    children: [{
        path: 'dashboard/supplier',
        // component: supplier
        component: resolve => require(['./components/dashboard/operation/supplier.vue'], resolve)
    },{
        path: 'dashboard/supplierDetail/:id',
        // component: supplierDetail
        component: resolve => require(['./components/dashboard/operation/supplierDetail.vue'], resolve)
    }]
},
{
    path: '/',
    component: Home,
    children: [{
        path: 'primary/homepage',
        component: homepage
        
    }, {
        path: 'primary/individual',
        component: individual
    }, {
        path: 'primary/information',
        component: information
    }]
}, {
    path: '/',
    component: Home,
    children: [{
        path: 'studentSearch',
        // component: studentSreach,
        name: 'studentSreach',
        component: resolve => require(['./components/common/studentSreach.vue'], resolve)
    }, {
        path: 'courseSearch',
        // component: courseSearch,
        name: 'courseSearch',
        component: resolve => require(['./components/common/courseSearch.vue'], resolve)
    }]
},
];
// export default routes

export default new Router({routes})